package com.zmn.plat.common.dto.channel;

import com.zmn.common.utils.pager.Operator;

import java.util.Objects;

/**
 * @author tanghongjun
 * @version v1.0
 * @since 2018/11/07 15:10
 * @类说明：渠道实体
 */
public class ChannelDnisDRO extends Operator {
    /**
     * 订单：来源相关（原dict_ordersrc）
     */
    private Integer channelId;

    /**
     * 老系统渠道
     */
    private Integer srcId;

    /**
     * 渠道名称
     */
    private String name;

    public Integer getSrcId() {
        return srcId;
    }

    public void setSrcId(Integer srcId) {
        this.srcId = srcId;
    }

    private static final long serialVersionUID = 1L;

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ChannelDnisDRO)) {
            return false;
        }
        ChannelDnisDRO that = (ChannelDnisDRO) o;
        return Objects.equals(getChannelId(), that.getChannelId()) && Objects.equals(getName(), that.getName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getChannelId(), getName());
    }

    @Override
    public String toString() {
        return "ChannelDnisDRO{" + "channelId=" + channelId + ", name='" + name + '\'' + '}';
    }
}